# def add(x,y):
#     return x+y
# # print(add(1,2))
#
# def mop(p):
#     print(add(*p))
# mop((1,2))

# class A():
#     a=12
# class B(A):
#     pass
# print(B.a)

# import requests
#
# payload = {'type':'BH','number':''}
#
# r = requests.post(url='http://crm6gtdj.credithc.com/index.php/XtApi/preparatNumber',data=payload)
# print(r.json())
# print(r.status_code)

# def twoSum(nums, target):
# #     """
# #     :type nums: List[int]
# #     :type target: int
# #     :rtype: List[int]
# #     """
# #     for i in range(len(nums) - 1):
# #         for j in nums[i + 1:]:
# #             if j == target - nums[i]:
# #                 return [i, nums[i + 1:].index(j) + i + 1]
# # print(twoSum([2,5,5,9],10))

# def sum(nums,target):
#     l=[]
#     for i in range(len(nums)-1):
#         for j in range(i+1,len(nums)):
#             if nums[i]+nums[j]==target:
#                 l.append(i)
#                 l.append(j)
#                 return l
# nums=[2,5,5,9]
# target=10
# print(sum(nums,target))

# def add(x,y):
#     return x+y
# def op(x,y):
#     return add(x,y)
# print(op(2,3))


#ctime函数把一个时间戳转化成time.asctime()的形式。如果参数未给或者None的时候，将会默认time.time()为参数,它的作用相当于asctime(localtime(secs))
# from time import sleep,ctime
# import threading
# def loop0():
#     print("loop 0 开始时间：",ctime())
#     sleep(4)
#     print("loop 0 结束时间：",ctime())
#
# def loop1():
#     print("loop 1 开始时间：",ctime())
#     sleep(2)
#     print("loop 1 结束时间：",ctime())
# def main():
#     print("程序开始时间：",ctime())
#     t1 = threading.Thread(target=loop0(),args=()) #target后面加函数,args后面加函数的参数
#     t1.start()
#
#     t2 = threading.Thread(target=loop1(),args=())
#     t2.start()
#     sleep(6)
#     print("程序结束时间：", ctime())
#
# if __name__=='__main__':
#     main()


